﻿using System;


namespace TopBuilds.Restaurant.Data
{
    public class PrintCategory
    {
        #region 属性
        private int         _id;
        private int         _templateId;
        private int         _category;
        private string      _name;
        private int         _printerQueueId;
        private int         _inUse;
        #endregion 

        #region 构造
        public PrintCategory()
        {
            _templateId         = 0;
            _category           = 0;
            _name               = null;
            _printerQueueId     = 0;
            _inUse              = 0;
        }

        public PrintCategory(int templateId)
        {
            _templateId        = templateId;
            _category          = 0;
            _name              = null;
            _printerQueueId    = 0;
            _inUse             = 0;
        }

        public PrintCategory(int templateId, int category)
        {
            _templateId       = templateId;
            _category         = category;
            _name             = null;
            _printerQueueId   = 0;
            _inUse            = 0;
        }

        public PrintCategory(int templateId, int category,string name)
        {
            _templateId      = templateId;
            _category        = category;
            _name            = name;
            _printerQueueId  = 0;
            _inUse           = 0;
        }

        public PrintCategory(int templateId, int category, string name, int printerQueueId)
        {
            _templateId      = templateId;
            _category        = category;
            _name            = name;
            _printerQueueId  = printerQueueId;
            _inUse           = 0;
        }

        public PrintCategory(int templateId, int category, string name, int printerQueueId, int inUse)
        {
            _templateId      = templateId;
            _category        = category;
            _name            = name;
            _printerQueueId  = printerQueueId;
            _inUse           = inUse;
        }
        #endregion

        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public int TemplateId
        {
            get { return _templateId; }
            set { _templateId = value; }
        }

        public int Category
        {
            get { return _category; }
            set { _category = value; }
        }

        public string  Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public int PrinterQueueId
        {
            get { return _printerQueueId; }
            set { _printerQueueId = value; }
        }

        public int InUse
        {
            get { return _inUse; }
            set { _inUse = value; }
        }
        public override string ToString()
        {
            return Name;
        }
    }
}
